package samples.d2.shapes 
{
	import flash.filters.DropShadowFilter;
	import flash.filters.GlowFilter;
	import flash.geom.Rectangle;
	import samples.BaseSample;
	import shapes.shapes2D.distribution.Grid;
	import shapes.shapes2D.Dot;
	import shapes.shapes2D.Square;
	
	/**
	 * @author Nicolas Barradeau
	 * http://en.nicoptere.net
	 */
	public class Square2 extends BaseSample
	{
		private var s:Square;
		
		public function Square2() 
		{
			
			
			var angle:Number = 0;
			var total:int = 50;
			var i:int = total;
			
			while( i-- )
			{
				angle = Math.PI * 2 / total * i;
				s = new Square( sw / 2 - 300 + i/total * 600, sh / 2 + Math.sin( angle ) * 100, 10 );
				graphics.beginFill( color );
				s.draw( graphics );
				graphics.endFill();
			}
		}
		
	}

}